/*
 * Location.java
 */
package ITU_ShuttleTracker.User.Location;

import org.primefaces.model.map.LatLng;

/**
 *
 * @author Onuralp
 */
public class Location {
    public String name;
    public LatLng coordinate;

    /**
     * Constructor of Location class
     * @param x X coordinate
     * @param y Y coordinate
     */
    public Location(double x, double y) {
        this.name = "";
        this.coordinate = new LatLng(x, y);
    }
    
    /**
     * Constructor of Location class
     * @param name Location name
     * @param x X coordinate
     * @param y Y coordinate
     */
    public Location(String name, double x, double y){
        this.name = name;
        this.coordinate = new LatLng(x, y);
    }

    /**
     * Getter method of location name
     * @return Location name
     */
    public String getName() {
        return name;
    }

    /**
     * Setter method of location name
     * @param name Location name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Getter method of coordinate
     * @return Coordinate
     */
    public LatLng getCoordinate() {
        return coordinate;
    }

    /**
     * Setter method of coordinate
     * @param coordinate Coordinate
     */
    public void setCoordinate(LatLng coordinate) {
        this.coordinate = coordinate;
    }
}